
<?php
//判断是否已登录
if(!isset($_SESSION['user_name'])) {
	echo "<br />";
	echo "<br />";
	echo "<br />";
	echo "<p class='text-center'>请登录！</p>";
	echo "<p class='text-center'><a href='../HTML/bid.html'>返回登录页面</a></p>";
	echo "</div>";
	echo "</body>";
	exit;
}

$user_id=$_SESSION['user_id'];
$user_name=$_SESSION['user_name'];
$user_position=$_SESSION['user_position'];

?>

<ul class='nav nav-tabs' role='tablist'>

<?php
//只有文控才能看到的菜单
if ($user_position=="DC") {
	echo "
	<li role='presentation' class='dropdown'>
		<a class='dropdown-toggle' data-toggle='dropdown'>
			 报价编号<span class='caret'></span>
		</a>
		 <ul class='dropdown-menu' role='menu'>
	       <li role='presentation'><a role='menuitem' tabindex='-1' href='../PHP/show_project_code.php'>查询现有编号</a></li>
		   <li role='presentation'><a role='menuitem' tabindex='-1' href='../PHP/add_project_code.php'>新增编号</a></li>
		 </ul>
    </li>";
}
//只有销售才看得到
if ($user_position=="SA" || $user_position=="MSA") {
	echo "
	<li role='presentation' class='dropdown'>
		<a class='dropdown-toggle' data-toggle='dropdown'>
			 报价委托<span class='caret'></span>
		</a>
		 <ul class='dropdown-menu' role='menu'>
	       <li role='presentation'><a role='menuitem' tabindex='-1' href='../PHP/show_project_entrust.php'>查询未委托项目</a></li>
		   <li role='presentation'><a role='menuitem' tabindex='-1' href='../PHP/show_project_entrusted.php'>查询已委托项目</a></li>
		   <li role='presentation'><a role='menuitem' tabindex='-1' href='../PHP/show_project_finished.php'>查询已完成项目</a></li>
		 </ul>
    </li>";
}
//只有报价负责人才看得到
if ($user_position=="RP") {
	echo "
	<li role='presentation' class='dropdown'>
		 <a class='dropdown-toggle' data-toggle='dropdown'>
			报价通知<span class='caret'></span>
		 </a>
		 <ul class='dropdown-menu' role='menu'>
            <li role='presentation'><a role='menuitem' tabindex='-1' href='../PHP/show_entrusted_note.php'>接收报价委托</a></li>
			<li role='presentation'><a role='menuitem' tabindex='-1' href='../PHP/show_noted_project.php'>进行中的项目</a></li>
			<li role='presentation'><a role='menuitem' tabindex='-1' href='../PHP/show_finished_project_pr.php'>已完成的项目</a></li>
		 </ul>
	</li>";
}
//只有专业负责人才看得到
if (strstr ($user_position, 'L')) {
	echo "
	<li role='presentation' class='dropdown'>
		 <a class='dropdown-toggle' data-toggle='dropdown'>
			任务分配和校核<span class='caret'></span>
		 </a>
		 <ul class='dropdown-menu' role='menu'>
            <li role='presentation'><a role='menuitem' tabindex='-1' href='../PHP/show_noted.php'>查询已通知项目</a></li>
			<li role='presentation'><a role='menuitem' tabindex='-1' href='../PHP/show_clarification_issue.php'>查询未校核澄清</a></li>
			<li role='presentation'><a role='menuitem' tabindex='-1' href='../PHP/show_deviation_issue.php'>查询未校核偏离</a></li>
			<li role='presentation'><a role='menuitem' tabindex='-1' href='../PHP/show_cost_issue.php'>查询未校核底价</a></li>
			<li role='presentation'><a role='menuitem' tabindex='-1' href='../PHP/show_proposal_issue.php'>查询未校核标书</a></li>
			<li role='presentation'><a role='menuitem' tabindex='-1' href='../PHP/show_finished.php'>查询已完成项目</a></li>
		 </ul>
	</li>";
		
		
		
}

//只有销售经理才看得到
if ($user_position=="MSA") {
	echo "
	<li role='presentation' class='dropdown'>
		 <a class='dropdown-toggle' data-toggle='dropdown'>
			商务校核<span class='caret'></span>
		 </a>
		 <ul class='dropdown-menu' role='menu'>
            <li role='presentation'><a role='menuitem' tabindex='-1' href='../PHP/msa_show_project.php'>正在进行的项目</a></li>
			<li role='presentation'><a role='menuitem' tabindex='-1' href='../PHP/msa_show_project_finished.php'>已完成的项目</a></li>
		 </ul>
	</li>";
		
		
		
}

?>
	<li role='presentation' class='dropdown'>
		<a class='dropdown-toggle' data-toggle='dropdown'>
			 我的报价项目<span class='caret'></span>
		</a>
		 <ul class='dropdown-menu' role='menu'>
	       <li role='presentation'><a role='menuitem' tabindex='-1' href='../PHP/show_my_task.php'>进行中...</a></li>
		   <li role='presentation'><a role='menuitem' tabindex='-1' href='../PHP/show_my_task_finished.php'>已完成</a></li>
		 </ul>
    </li>
	


	
    <li role='presentation' class='dropdown'>
		 <a class='dropdown-toggle' data-toggle='dropdown'>
			其它<span class='caret'></span>
		 </a>
		 <ul class='dropdown-menu' role='menu'>
            <li role='presentation'><a role='menuitem' tabindex='-1' href='../PHP/ch_pass_wd.php'>密码修改</a></li>
            <li role='presentation'><a role='menuitem' tabindex='-1' href='../PHP/logout.php'>注销</a></li>
		 </ul>
	</li>


</ul>
